package china.lzy.entity.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Collections;
import java.util.List;

/**
 * @author ：lzy
 * @ Date       ：Created in 14:25 2021/8/11
 * @ Description：分页查询的传输类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageDto<T> implements java.io.Serializable{
    private static final long serialVersionUID = -2105385689859184204L;
    /**
     * 总条数
     */
    private Integer total = 0;

    /**
     * 当前页
     */
    private Integer pageNum = 0;

    /**
     * 一页显示的大小
     */
    private Integer pageSize = 0;

    /**
     * 数据列表
     */
    private List<T> records = Collections.emptyList();

}
